<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN" 
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="cn.firstsoft.modules.workTask.domain.WorkTaskUser" table="work_task_user">
     <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				         <param name="sequence">WORK_TASK_USER_ID_SEQ</param>
            </generator>
     </id>

        <many-to-one name="user" class="org.springside.modules.security.domain.User" fetch="select">
            <column name="user_id"/>
        </many-to-one>

        <many-to-one name="workTaskProject" class="cn.firstsoft.modules.workTask.domain.WorkTaskProject" fetch="select">
            <column name="work_task_project_id"/>
        </many-to-one>

        <!--
            To add non XDoclet property mappings, create a file named
                hibernate-properties-WorkTaskUser.xml
            containing the additional properties and place it in your merge dir.
        -->

    </class>

</hibernate-mapping>
